<template>
  <div class="dischildren" style=" padding: 1.5625rem;">
   <div class="top">
    <p @click="fun()">×</p>
    <!-- <p> {{this.$route.params.dischildren}}</p> -->
   </div>
   <h5>{{this.$route.params.dischildren.Pythonone}}</h5>
   <main>
    <div class="shang">
        <div class="img">
            <img :src="this.$route.params.dischildren.img" alt="">
        </div>
        <div class="text">
            <div class="right">
                <p>{{this.$route.params.dischildren.name}}</p>
                <b>{{this.$route.params.dischildren.article}}</b>
            </div>
            <div class="left">
                关注
            </div>
        </div>
    </div>
    <div class="txt">
        <p>{{this.$route.params.dischildren.textone}}</p>
        <p>{{this.$route.params.dischildren.texttwo}}</p>
        <div class="img">
            <img :src="this.$route.params.dischildren.imgone" alt="">
        </div>
        <p>{{this.$route.params.dischildren.textthree}}</p>
    </div>
   </main>
  </div>
</template>

<script>
export default {
methods:{
    fun(){
        this.$router.push("/discuss") 
    }
}
}
</script>

<style lang="scss" scoped>
b,
strong {
 font-weight: 400;
}
* {
 padding: 0;
 margin: 0;
 box-sizing: border-box;
 font-size: 0.16rem;
 align-items: center;
}
.dischildren{
    .top{
        p{
            padding: .9375rem 0 ;
            font-weight: 700;
        }
    }
    h5{
        margin: .625rem;
        font-size: 1.625rem;
    }
    main{
        .shang{
            display: flex;
        img{
            width: 1.25rem;
            height: 1.25rem;
            margin-right: .625rem;
        }
        .text{
            width: 19.375rem;
            display: flex;
            justify-content: space-between;
            .right{
                p{
                    font-size: .875rem;
                    font-weight: 700;
                }
                b{
                    font-size: .75rem;
                }
            }
            .left{
                width: 4.375rem;
                height: 2.5rem;
                color: white;
                background-color: #37c2bc;
                border-radius: 1.5625rem;
                text-align: center;
                line-height: 2.5rem;
            }
        }
    }
    .txt{
        p{
            font-size: 1rem;
            line-height: 2rem;
            margin: 1.25rem 0 ;
        }
        .img{
            width: 20.625rem;
            margin: 0 auto;
            img{
                width: 20.625rem;  
            }
        }
    }
    }
    
}
</style>